		<HTML>
		<HEAD>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<meta name="description" content="Flash MX 2004 ActionScript2.0 Library: Integral - Wright Internet Solutions">
		<meta name="keywords" content="calculus,Integral,Flash,MX,2004,ActionScript,ActionScript2.0,AS2.0 Library,AS2,AS2 Library,Wright Internet Solutions,Wright,classes,documentation,methods,functions,interfaces,JavaScript,Java">
		<TITLE>WIS AS2 Library : com.wis.math.calc.Integral Documentation</TITLE>

		<STYLE><!--
		HR.small{height:1px; width:100%; background:#E7BFA3; border: 0px;}
		HR.big{height:4px; width:100%; background:#E7BFA3; border: 0px;}
		A:hover{text-decoration: underline}
		A{text-decoration: none; color: #993333}
		code{font-family: monospace; font-size: 12px; color: #666666;}
		.methodAttributesTitle{font-size: 12px; font-weight: bold; color: #7B779C}
		.ToC{font-size: 12px; font-weight: bold; color: #993333}
		.methodTitle{font-size: 14px; font-weight: bold; color: #993333}
		.groupTitle{font-size: 18px; font-weight: bold; color: #993333}
		.sectionTitle{font-size: 22px; font-weight: bold; color: #993333}
		.majorTitle{font-size: 32px; font-weight: bold; color: #993333; padding-bottom:100px;}
		.methodsDiv{margin-left:40px;}
		.footer{font-size: 11px; color: #666666;}
		body{font-family: arial,sans-serif; font-size: 12px;}
		//--></STYLE>

		</HEAD>
		<BODY bgColor='#ffffcc'>
		<P class='majorTitle'>com.wis.math.calc.Integral Documentation</P>

        <P><B>Author:</B> <a href='mailto:wisolutions2002@shaw.ca?subject=wisASLibrary  Integral Class'>Richard Wright</a><BR>
		<B>Last Modified:</B> 01/11/05 17:59:31<HR class='big'>

		<P class='sectionTitle'>Summary</P>
		<P class='ToC'>com.wis.math.calc.Integral class:</P>
		<div class='methodsDiv'><a href='#classinfo'>- description</a></div>
<P class='ToC'>com.wis.math.calc.Integral Properties:</P><div class='methodsDiv'>
<a href='#$MAX_ITERATIONS'>- $MAX_ITERATIONS</a><br>
</div><br>
<P class='ToC'>com.wis.math.calc.Integral Methods:</P><div class='methodsDiv'>
<a href='# trapezoidal'>-  trapezoidal</a><br>
<a href='# simpson'>-  simpson</a><br>
<a href='# simpsonTol'>-  simpsonTol</a><br>
<a href='# romberg'>-  romberg</a><br>
<a href='# ode'>-  ode</a><br>
<a href='# fillArray'>-  fillArray</a><br>
<a href='# fillArrayData'>-  fillArrayData</a><br>
<a href='# relativePrecision'>-  relativePrecision</a><br>
</div><br>

		<HR class='big'>
		<P class='sectionTitle'><A name='classinfo'></A>com.wis.math.calc.Integral <I>class</I></P>
		<P> <span class='methodTitle'>version:</span> 1.7</P>
		<P class="methodTitle">description:</P>
		<P>Implements the static behaviours of the Integral Class.
 This class cannot be subclassed or instantiated because all
 methods are static.
 </P>
		<P class="methodTitle">usage:</P> <pre>Integral.classMethod(args);</pre>

<P> <span class='methodTitle'>parameters:</span>
				<ul>
<li>      none  -- static methods are called directly without class instantiation.</li>
</ul>

			<HR class='small'>
			<P class='groupTitle'><A name='properties'></A>com.wis.math.calc.Integral Properties:</P>
			<div class='methodsDiv' >


				<P class='methodTitle'><A name='$MAX_ITERATIONS'></A><u> $MAX_ITERATIONS</u></P>
				<P> (Number)  -- maximum iterations.</P>
</div>

			<HR class='small'>
			<P class='groupTitle'><A name='methods'></A>com.wis.math.calc.Integral Methods:</P>
			<div class='methodsDiv' >


				<P class='methodTitle'><A name=' trapezoidal'></A><u>  trapezoidal</u></P>
				<P><span class='methodAttributesTitle'>description: </span>
				Integrates the function using the trapezoidal method.
     </P>
				<P><span class='methodAttributesTitle'>usage:</span> <pre>Integral.trapezoidal(f,start,stop,n,tol);</pre>
     </P>
<P> <span class='methodAttributesTitle'>parameters:</span><ul>
<li>f  (Function)  -- the function.</li>
<li>start  (Number)  -- the first ordinate.</li>
<li>stop  (Number)  -- the last ordinate.</li>
<li>n  (Number)  -- the number of partitions.</li>
<li>tol  (Number)  -- relative tolerance.</li>
</ul></P>
<P><span class='methodAttributesTitle'>returns:</span> (Number)  -- returns the integral.
    </P>

				<P class='methodTitle'><A name=' simpson'></A><u>  simpson</u></P>
				<P><span class='methodAttributesTitle'>description: </span>
				Numerical integration using Simpson's rule.
     </P>
				<P><span class='methodAttributesTitle'>usage:</span> <pre>Integral.simpson(f,start,stop,n);</pre>
     </P>
<P> <span class='methodAttributesTitle'>parameters:</span><ul>
<li> f  (Function)  -- a function.</li>
<li> start  (Number)  -- the first ordinate.</li>
<li> stop  (Number)  -- the last ordinate.</li>
<li> n  (Number)  -- the number of partitions.</li>
</ul></P>
<P><span class='methodAttributesTitle'>returns:</span> (Number)  -- returns the integral.
    </P>

				<P class='methodTitle'><A name=' simpsonTol'></A><u>  simpsonTol</u></P>
				<P><span class='methodAttributesTitle'>description: </span>
				Numerical integration using Simpson's rule.
     </P>
				<P><span class='methodAttributesTitle'>usage:</span> <pre>Integral.simpsonTol(f,start,stop,n,tol);</pre>
     </P>
<P> <span class='methodAttributesTitle'>parameters:</span><ul>
<li> f  (Function)  -- the function.</li>
<li> start  (Number)  -- the first ordinate.</li>
<li> stop  (Number)  -- the last ordinate.</li>
<li> n  (Number)  -- minimum number of partitions.</li>
<li> tol  (Number)  -- relative tolerance.</li>
</ul></P>
<P><span class='methodAttributesTitle'>returns:</span> (Number)  -- returns the integral.
    </P>

				<P class='methodTitle'><A name=' romberg'></A><u>  romberg</u></P>
				<P><span class='methodAttributesTitle'>description: </span>
				Integrates the function using Romberg's algorithm based on Richardson's deferred approach.
     </P>
				<P><span class='methodAttributesTitle'>usage:</span> <pre>Integral.romberg(f,start,stop,n,tol);</pre>
     </P>
<P> <span class='methodAttributesTitle'>parameters:</span><ul>
<li> f  (Function)  -- the function.</li>
<li> start  (Number)  -- the first ordinate.</li>
<li> stop  (Number)  -- the last ordinate.</li>
<li> tol  (Number)  -- relative tolerance.</li>
</ul></P>
<P><span class='methodAttributesTitle'>returns:</span> (Number)  -- returns the integral.
    </P>

				<P class='methodTitle'><A name=' ode'></A><u>  ode</u></P>
				<P><span class='methodAttributesTitle'>description: </span>
				Computes the integral of the function using an ODE solver.
     </P>
				<P><span class='methodAttributesTitle'>usage:</span> <pre>Integral.ode(f,start,stop,tol);</pre>
     </P>
<P> <span class='methodAttributesTitle'>parameters:</span><ul>
<li> f  (Function)  -- the function.</li>
<li> start  (Number)  -- the first ordinate.</li>
<li> stop  (Number)  -- the last ordinate.</li>
<li> tol  (Number)  -- relative tolerance.</li>
</ul></P>
<P><span class='methodAttributesTitle'>returns:</span> (Number)  -- returns the integral.
    </P>

				<P class='methodTitle'><A name=' fillArray'></A><u>  fillArray</u></P>
				<P><span class='methodAttributesTitle'>description: </span>
				Fills a data array with the integral of the given function.
     </P>
				<P><span class='methodAttributesTitle'>usage:</span> <pre>Integral.fillArray(f,start,stop,tol,n);</pre>
     </P>
<P> <span class='methodAttributesTitle'>parameters:</span><ul>
<li> f  (Function)  -- to be integrated.</li>
<li> start  (Number)  -- start of integral.</li>
<li> stop  (Number)  -- end of integral.</li>
<li> tol  (Number)  -- computation tolerance.</li>
<li> n  (Number)  -- number of data points.</li>
</ul></P>
<P><span class='methodAttributesTitle'>returns:</span> (Array)  -- returns a nested data array.
    </P>

				<P class='methodTitle'><A name=' fillArrayData'></A><u>  fillArrayData</u></P>
				<P><span class='methodAttributesTitle'>description: </span>
				Fills the given data array with the integral of the given function.
     </P>
				<P><span class='methodAttributesTitle'>usage:</span> <pre>Integral.fillArrayData(f,start,stop,tol,data);</pre>
     </P>
<P> <span class='methodAttributesTitle'>parameters:</span><ul>
<li> f  (Function)  -- to be integrated.</li>
<li> start  (Number)  -- start of integral.</li>
<li> stop  (Number)  -- end of integral.</li>
<li> tol  (Number)  -- computation tolerance.</li>
<li> data  (Array)  -- a 2-dimensional array.</li>
</ul></P>
<P><span class='methodAttributesTitle'>returns:</span> (Array)  -- returns a nested data array.
    </P>

				<P class='methodTitle'><A name=' relativePrecision'></A><u>  relativePrecision</u></P>
				<P><span class='methodAttributesTitle'>description: </span>
				Defines relative precision based on input.
     </P>
				<P><span class='methodAttributesTitle'>usage:</span> <pre>Integral.relativePrecision(epsilon,result);</pre>
     </P>
<P> <span class='methodAttributesTitle'>parameters:</span><ul>
<li>epsilon(Number)  -- the absolute error.</li>
<li>result(Number)  -- the result.</li>
</ul></P>
<P><span class='methodAttributesTitle'>returns:</span> (Number)  -- returns the relative error.
    </P>
</div>

			<BR>
			<BR>
			<HR class='big'>
			<span class="footer">generated with <A href='http://blog.klaustrofobik.org/' target='_blank'>AS2docGenerator beta 0.5.3</A></span>
			</BODY>
			</HTML>

